﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sy3_2_2_
{
    internal class Building
    {
        private float length, width, price;
        private int layers;

        public float GetArea()
        {
            return length * width * layers;
        }

        public float TotalPrice()
        {
            return GetArea() * price;
        }

        public float MyPrice
        {
            set
            {
                price = value;
            }
            get
            {
                return price;
            }
        }

        public Building(float l, float w, int lys)
        {
            this.length = l;
            this.width = w;
            this.layers = lys;
        }
    }
}